class CreateAparelhos < ActiveRecord::Migration
  def change
    create_table :aparelhos do |t|
      t.string :imei
      t.string :numero
      t.string :marca
      t.string :modelo
      t.date :data_de_ativacao
      t.string :status
      t.string :serie
      t.string :identificador
      t.belongs_to :cliente

      t.timestamps
    end
    add_index :aparelhos, :cliente_id
  end
end
